Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Oauth를 통해 로그인하면
refresh 토큰을 쿠키로 발급 받고
프론트에서
/auth/token/refresh 로 액세스 토큰을 발급받을 수 있고
리프레쉬 토큰이 없거나 유효하지 않으면 401로 프론트에서 로그인 처리
그리고 로테이선 전략을 사용하여 리프레쉬 토큰이 탈취 되더라도 무제한으로 사용할 수 없도록
리프레쉬토큰을 이용해서 액세스토큰을 발급받으면 리프레쉬 토큰이 재발급 되도록 변경
리프레쉬 토큰은 redis에 저장하여 db까지 안가고 빠른 조회를 통해 부하 줄였음